<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link rel="manifest" href="/assets/site.webmanifest"><link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#fc4d50"><link rel="shortcut icon" href="/assets/favicon.ico"><meta name="msapplication-TileColor" content="#ffc40d"><meta name="msapplication-config" content="/assets/browserconfig.xml"><meta name="theme-color" content="#ffffff"><!-- end favicons snippet -->
<title>SessionPlayerConnector (ExoPlayer library)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="SessionPlayerConnector (ExoPlayer library)";
        }
    }
    catch(err) {
    }
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.google.android.exoplayer2.ext.media2</a></div>
<h2 title="Class SessionPlayerConnector" class="title">Class SessionPlayerConnector</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>androidx.media2.common.SessionPlayer</li>
<li>
<ul class="inheritance">
<li>com.google.android.exoplayer2.ext.media2.SessionPlayerConnector</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="https://developer.android.com/reference/java/io/Closeable.html" title="class or interface in java.io" class="externalLink">Closeable</a></code>, <code><a href="https://developer.android.com/reference/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_top">AutoCloseable</a></code></dd>
</dl>
<hr>
<pre>public final class <span class="typeNameLabel">SessionPlayerConnector</span>
extends androidx.media2.common.SessionPlayer</pre>
<div class="block">An implementation of <code>SessionPlayer</code> that wraps a given ExoPlayer <a href="../../Player.html" title="interface in com.google.android.exoplayer2"><code>Player</code></a> instance.

 <p>Internally this implementation posts operations to and receives callbacks on the thread
 associated with <a href="../../Player.html#getApplicationLooper()"><code>Player.getApplicationLooper()</code></a>, so it is important not to block this
 thread. In particular, when awaiting the result of an asynchronous session player operation, apps
 should generally use <a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true#addListener(java.lang.Runnable,java.util.concurrent.Executor)" title="class or interface in com.google.common.util.concurrent" class="externalLink"><code>ListenableFuture.addListener(Runnable, Executor)</code></a> to be notified of
 completion, rather than calling the blocking <a href="https://developer.android.com/reference/java/util/concurrent/Future.html#get()" title="class or interface in java.util.concurrent" class="externalLink" target="_top"><code>Future.get()</code></a> method.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.androidx.media2.common.SessionPlayer">
<!--   -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;androidx.media2.common.SessionPlayer</h3>
<code>androidx.media2.common.SessionPlayer.BuffState, androidx.media2.common.SessionPlayer.PlayerCallback, androidx.media2.common.SessionPlayer.PlayerResult, androidx.media2.common.SessionPlayer.PlayerState, androidx.media2.common.SessionPlayer.RepeatMode, androidx.media2.common.SessionPlayer.ShuffleMode, androidx.media2.common.SessionPlayer.TrackInfo</code></li>
</ul>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="fields.inherited.from.class.androidx.media2.common.SessionPlayer">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;androidx.media2.common.SessionPlayer</h3>
<code>BUFFERING_STATE_BUFFERING_AND_PLAYABLE, BUFFERING_STATE_BUFFERING_AND_STARVED, BUFFERING_STATE_COMPLETE, BUFFERING_STATE_UNKNOWN, INVALID_ITEM_INDEX, PLAYER_STATE_ERROR, PLAYER_STATE_IDLE, PLAYER_STATE_PAUSED, PLAYER_STATE_PLAYING, REPEAT_MODE_ALL, REPEAT_MODE_GROUP, REPEAT_MODE_NONE, REPEAT_MODE_ONE, SHUFFLE_MODE_ALL, SHUFFLE_MODE_GROUP, SHUFFLE_MODE_NONE, UNKNOWN_TIME</code></li>
</ul>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(com.google.android.exoplayer2.Player)">SessionPlayerConnector</a></span>&#8203;(<a href="../../Player.html" title="interface in com.google.android.exoplayer2">Player</a>&nbsp;player)</code></th>
<td class="colLast">
<div class="block">Creates an instance using <a href="DefaultMediaItemConverter.html" title="class in com.google.android.exoplayer2.ext.media2"><code>DefaultMediaItemConverter</code></a> to convert between ExoPlayer and
 media2 MediaItems and <a href="../../DefaultControlDispatcher.html" title="class in com.google.android.exoplayer2"><code>DefaultControlDispatcher</code></a> to dispatch player commands.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(com.google.android.exoplayer2.Player,com.google.android.exoplayer2.ext.media2.MediaItemConverter)">SessionPlayerConnector</a></span>&#8203;(<a href="../../Player.html" title="interface in com.google.android.exoplayer2">Player</a>&nbsp;player,
                      <a href="MediaItemConverter.html" title="interface in com.google.android.exoplayer2.ext.media2">MediaItemConverter</a>&nbsp;mediaItemConverter)</code></th>
<td class="colLast">
<div class="block">Creates an instance using the provided <a href="../../ControlDispatcher.html" title="interface in com.google.android.exoplayer2"><code>ControlDispatcher</code></a> to dispatch player commands.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addPlaylistItem(int,androidx.media2.common.MediaItem)">addPlaylistItem</a></span>&#8203;(int&nbsp;index,
               androidx.media2.common.MediaItem&nbsp;item)</code></th>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#close()">close</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>androidx.media.AudioAttributesCompat</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAudioAttributes()">getAudioAttributes</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBufferedPosition()">getBufferedPosition</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBufferingState()">getBufferingState</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>androidx.media2.common.MediaItem</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentMediaItem()">getCurrentMediaItem</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentMediaItemIndex()">getCurrentMediaItemIndex</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentPosition()">getCurrentPosition</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDuration()">getDuration</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNextMediaItemIndex()">getNextMediaItemIndex</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlaybackSpeed()">getPlaybackSpeed</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlayerState()">getPlayerState</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a>&lt;androidx.media2.common.MediaItem&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlaylist()">getPlaylist</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>androidx.media2.common.MediaMetadata</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlaylistMetadata()">getPlaylistMetadata</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPreviousMediaItemIndex()">getPreviousMediaItemIndex</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRepeatMode()">getRepeatMode</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getShuffleMode()">getShuffleMode</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#movePlaylistItem(int,int)">movePlaylistItem</a></span>&#8203;(int&nbsp;fromIndex,
                int&nbsp;toIndex)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pause()">pause</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#play()">play</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#prepare()">prepare</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removePlaylistItem(int)">removePlaylistItem</a></span>&#8203;(int&nbsp;index)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#replacePlaylistItem(int,androidx.media2.common.MediaItem)">replacePlaylistItem</a></span>&#8203;(int&nbsp;index,
                   androidx.media2.common.MediaItem&nbsp;item)</code></th>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekTo(long)">seekTo</a></span>&#8203;(long&nbsp;position)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAudioAttributes(androidx.media.AudioAttributesCompat)">setAudioAttributes</a></span>&#8203;(androidx.media.AudioAttributesCompat&nbsp;attr)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setControlDispatcher(com.google.android.exoplayer2.ControlDispatcher)">setControlDispatcher</a></span>&#8203;(<a href="../../ControlDispatcher.html" title="interface in com.google.android.exoplayer2">ControlDispatcher</a>&nbsp;controlDispatcher)</code></th>
<td class="colLast">
<div class="block">Sets the <a href="../../ControlDispatcher.html" title="interface in com.google.android.exoplayer2"><code>ControlDispatcher</code></a>.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMediaItem(androidx.media2.common.MediaItem)">setMediaItem</a></span>&#8203;(androidx.media2.common.MediaItem&nbsp;item)</code></th>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPlaybackSpeed(float)">setPlaybackSpeed</a></span>&#8203;(float&nbsp;playbackSpeed)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPlaylist(java.util.List,androidx.media2.common.MediaMetadata)">setPlaylist</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a>&lt;androidx.media2.common.MediaItem&gt;&nbsp;playlist,
           androidx.media2.common.MediaMetadata&nbsp;metadata)</code></th>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRepeatMode(int)">setRepeatMode</a></span>&#8203;(int&nbsp;repeatMode)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setShuffleMode(int)">setShuffleMode</a></span>&#8203;(int&nbsp;shuffleMode)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#skipToNextPlaylistItem()">skipToNextPlaylistItem</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#skipToPlaylistItem(int)">skipToPlaylistItem</a></span>&#8203;(int&nbsp;index)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#skipToPreviousPlaylistItem()">skipToPreviousPlaylistItem</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updatePlaylistMetadata(androidx.media2.common.MediaMetadata)">updatePlaylistMetadata</a></span>&#8203;(androidx.media2.common.MediaMetadata&nbsp;metadata)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.androidx.media2.common.SessionPlayer">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;androidx.media2.common.SessionPlayer</h3>
<code>deselectTrack, getCallbacks, getSelectedTrack, getTracks, getVideoSize, registerPlayerCallback, selectTrack, setSurface, unregisterPlayerCallback</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></h3>
<code><a href="https://developer.android.com/reference/java/lang/Object.html#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink" target="_top">wait</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(com.google.android.exoplayer2.Player)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SessionPlayerConnector</h4>
<pre>public&nbsp;SessionPlayerConnector&#8203;(<a href="../../Player.html" title="interface in com.google.android.exoplayer2">Player</a>&nbsp;player)</pre>
<div class="block">Creates an instance using <a href="DefaultMediaItemConverter.html" title="class in com.google.android.exoplayer2.ext.media2"><code>DefaultMediaItemConverter</code></a> to convert between ExoPlayer and
 media2 MediaItems and <a href="../../DefaultControlDispatcher.html" title="class in com.google.android.exoplayer2"><code>DefaultControlDispatcher</code></a> to dispatch player commands.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>player</code> - The player to wrap.</dd>
</dl>
</li>
</ul>
<a id="&lt;init&gt;(com.google.android.exoplayer2.Player,com.google.android.exoplayer2.ext.media2.MediaItemConverter)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SessionPlayerConnector</h4>
<pre>public&nbsp;SessionPlayerConnector&#8203;(<a href="../../Player.html" title="interface in com.google.android.exoplayer2">Player</a>&nbsp;player,
                              <a href="MediaItemConverter.html" title="interface in com.google.android.exoplayer2.ext.media2">MediaItemConverter</a>&nbsp;mediaItemConverter)</pre>
<div class="block">Creates an instance using the provided <a href="../../ControlDispatcher.html" title="interface in com.google.android.exoplayer2"><code>ControlDispatcher</code></a> to dispatch player commands.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>player</code> - The player to wrap.</dd>
<dd><code>mediaItemConverter</code> - The <a href="MediaItemConverter.html" title="interface in com.google.android.exoplayer2.ext.media2"><code>MediaItemConverter</code></a>.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a id="setControlDispatcher(com.google.android.exoplayer2.ControlDispatcher)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setControlDispatcher</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setControlDispatcher&#8203;(<a href="../../ControlDispatcher.html" title="interface in com.google.android.exoplayer2">ControlDispatcher</a>&nbsp;controlDispatcher)</pre>
<div class="block">Sets the <a href="../../ControlDispatcher.html" title="interface in com.google.android.exoplayer2"><code>ControlDispatcher</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>controlDispatcher</code> - The <a href="../../ControlDispatcher.html" title="interface in com.google.android.exoplayer2"><code>ControlDispatcher</code></a>.</dd>
</dl>
</li>
</ul>
<a id="play()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>play</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;play()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>play</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="pause()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pause</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;pause()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>pause</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="prepare()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prepare</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;prepare()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>prepare</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="seekTo(long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekTo</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;seekTo&#8203;(long&nbsp;position)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>seekTo</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="setPlaybackSpeed(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlaybackSpeed</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;setPlaybackSpeed&#8203;(@FloatRange(from=0.0,to=3.4028234663852886E38,fromInclusive=false)
                                                                                            float&nbsp;playbackSpeed)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setPlaybackSpeed</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="setAudioAttributes(androidx.media.AudioAttributesCompat)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAudioAttributes</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;setAudioAttributes&#8203;(androidx.media.AudioAttributesCompat&nbsp;attr)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setAudioAttributes</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getPlayerState()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlayerState</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;getPlayerState()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getPlayerState</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getCurrentPosition()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentPosition</h4>
<pre class="methodSignature">public&nbsp;long&nbsp;getCurrentPosition()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getCurrentPosition</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getDuration()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDuration</h4>
<pre class="methodSignature">public&nbsp;long&nbsp;getDuration()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getDuration</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getBufferedPosition()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBufferedPosition</h4>
<pre class="methodSignature">public&nbsp;long&nbsp;getBufferedPosition()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getBufferedPosition</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getBufferingState()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBufferingState</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;getBufferingState()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getBufferingState</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getPlaybackSpeed()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaybackSpeed</h4>
<pre class="methodSignature">@FloatRange(from=0.0,
            to=3.4028234663852886E38,
            fromInclusive=false)
public&nbsp;float&nbsp;getPlaybackSpeed()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getPlaybackSpeed</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getAudioAttributes()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAudioAttributes</h4>
<pre class="methodSignature">@Nullable
public&nbsp;androidx.media.AudioAttributesCompat&nbsp;getAudioAttributes()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getAudioAttributes</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="setMediaItem(androidx.media2.common.MediaItem)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItem</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;setMediaItem&#8203;(androidx.media2.common.MediaItem&nbsp;item)</pre>
<div class="block">

 <p><code>FileMediaItem</code> and <code>CallbackMediaItem</code> are not supported.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setMediaItem</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="setPlaylist(java.util.List,androidx.media2.common.MediaMetadata)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlaylist</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;setPlaylist&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a>&lt;androidx.media2.common.MediaItem&gt;&nbsp;playlist,
                                                                                       @Nullable
                                                                                       androidx.media2.common.MediaMetadata&nbsp;metadata)</pre>
<div class="block">

 <p><code>FileMediaItem</code> and <code>CallbackMediaItem</code> are not supported.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setPlaylist</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="addPlaylistItem(int,androidx.media2.common.MediaItem)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addPlaylistItem</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;addPlaylistItem&#8203;(int&nbsp;index,
                                                                                           androidx.media2.common.MediaItem&nbsp;item)</pre>
<div class="block">

 <p><code>FileMediaItem</code> and <code>CallbackMediaItem</code> are not supported.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>addPlaylistItem</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="removePlaylistItem(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removePlaylistItem</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;removePlaylistItem&#8203;(@IntRange(from=0L)
                                                                                              int&nbsp;index)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>removePlaylistItem</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="replacePlaylistItem(int,androidx.media2.common.MediaItem)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replacePlaylistItem</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;replacePlaylistItem&#8203;(int&nbsp;index,
                                                                                               androidx.media2.common.MediaItem&nbsp;item)</pre>
<div class="block">

 <p><code>FileMediaItem</code> and <code>CallbackMediaItem</code> are not supported.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>replacePlaylistItem</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="movePlaylistItem(int,int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>movePlaylistItem</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;movePlaylistItem&#8203;(int&nbsp;fromIndex,
                                                                                            int&nbsp;toIndex)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>movePlaylistItem</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="skipToPreviousPlaylistItem()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>skipToPreviousPlaylistItem</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;skipToPreviousPlaylistItem()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>skipToPreviousPlaylistItem</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="skipToNextPlaylistItem()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>skipToNextPlaylistItem</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;skipToNextPlaylistItem()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>skipToNextPlaylistItem</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="skipToPlaylistItem(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>skipToPlaylistItem</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;skipToPlaylistItem&#8203;(@IntRange(from=0L)
                                                                                              int&nbsp;index)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>skipToPlaylistItem</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="updatePlaylistMetadata(androidx.media2.common.MediaMetadata)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updatePlaylistMetadata</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;updatePlaylistMetadata&#8203;(@Nullable
                                                                                                  androidx.media2.common.MediaMetadata&nbsp;metadata)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>updatePlaylistMetadata</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="setRepeatMode(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRepeatMode</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;setRepeatMode&#8203;(int&nbsp;repeatMode)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setRepeatMode</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="setShuffleMode(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShuffleMode</h4>
<pre class="methodSignature">public&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html?is-external=true" title="class or interface in com.google.common.util.concurrent" class="externalLink">ListenableFuture</a>&lt;androidx.media2.common.SessionPlayer.PlayerResult&gt;&nbsp;setShuffleMode&#8203;(int&nbsp;shuffleMode)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setShuffleMode</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getPlaylist()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaylist</h4>
<pre class="methodSignature">@Nullable
public&nbsp;<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a>&lt;androidx.media2.common.MediaItem&gt;&nbsp;getPlaylist()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getPlaylist</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getPlaylistMetadata()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaylistMetadata</h4>
<pre class="methodSignature">@Nullable
public&nbsp;androidx.media2.common.MediaMetadata&nbsp;getPlaylistMetadata()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getPlaylistMetadata</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getRepeatMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRepeatMode</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;getRepeatMode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getRepeatMode</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getShuffleMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShuffleMode</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;getShuffleMode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getShuffleMode</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getCurrentMediaItem()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentMediaItem</h4>
<pre class="methodSignature">@Nullable
public&nbsp;androidx.media2.common.MediaItem&nbsp;getCurrentMediaItem()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getCurrentMediaItem</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getCurrentMediaItemIndex()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentMediaItemIndex</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;getCurrentMediaItemIndex()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getCurrentMediaItemIndex</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getPreviousMediaItemIndex()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPreviousMediaItemIndex</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;getPreviousMediaItemIndex()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getPreviousMediaItemIndex</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="getNextMediaItemIndex()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNextMediaItemIndex</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;getNextMediaItemIndex()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getNextMediaItemIndex</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
<a id="close()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>close</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;close()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://developer.android.com/reference/java/lang/AutoCloseable.html#close()" title="class or interface in java.lang" class="externalLink">close</a></code>&nbsp;in interface&nbsp;<code><a href="https://developer.android.com/reference/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_top">AutoCloseable</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://developer.android.com/reference/java/io/Closeable.html#close()" title="class or interface in java.io" class="externalLink">close</a></code>&nbsp;in interface&nbsp;<code><a href="https://developer.android.com/reference/java/io/Closeable.html?is-external=true" title="class or interface in java.io" class="externalLink" target="_top">Closeable</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>close</code>&nbsp;in class&nbsp;<code>androidx.media2.common.SessionPlayer</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>
